<template>
  <div>
    <el-form :inline="true" :model="fromdata" label-width="120px" label-position="right">
      <el-row>
        <el-col :span="12">客户信息</el-col>
      </el-row>
      <el-divider content-position="center"></el-divider>
      <el-row>
        <el-col :span="8"> <el-form-item label="客户类型:">
          <div>{{ fromdata.clientType }}</div>
        </el-form-item></el-col>
        <el-col :span="8"><el-form-item label="客户名称:">
          <div>{{ fromdata.clientName }}</div>
        </el-form-item></el-col>
        <el-col :span="8"> <el-form-item label="手机号:">
          <div>{{ fromdata.phone }}</div>
        </el-form-item></el-col>
        <el-col :span="8"> <el-form-item label="性别:">
          <div>{{ fromdata.genderCst }}</div>
        </el-form-item></el-col>
        <el-col :span="8"> <el-form-item label="驾驶证号:">
          <div>{{ fromdata.jszNum }}</div>
        </el-form-item></el-col>
        <el-col :span="8"><el-form-item label="驾驶证到期日期:">
          <div>{{ fromdata.jszExpireTime }}</div>
        </el-form-item></el-col>
        <el-col :span="8"><el-form-item label="生日:">
          <div>{{ fromdata.birthday }}</div>
        </el-form-item></el-col>
        <el-col :span="8"> <el-form-item label="会员等级:">
          <div>{{ fromdata.memberLevelDictValue }}</div>
        </el-form-item></el-col>
        <el-col :span="8"><el-form-item label="客户来源:">
          <div>{{ fromdata.clientSource }}</div>
        </el-form-item></el-col>
        <el-col :span="8"> <el-form-item label="地址:">
          <div>{{ fromdata.address }}</div>
        </el-form-item></el-col>
        <el-col :span="8"> <el-form-item label="备注:">
          <div>{{ fromdata.remark }}</div>
        </el-form-item></el-col>
        <el-col :span="8"> <el-form-item label="客户喜好:">
          <div>{{ fromdata.clientLike }}</div>
        </el-form-item></el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
// import { getClientById } from '@/api/after-sale/client/client'
import baseMixin from '@/mixins/base'
import { parseTimeToYMDHMS } from '@/utils'

export default {
  name: 'editClientManage',
  components: {},
  props: {
    fromdata: {
      type: Object,
      default: () => ({}),
    },
  },
  mixins: [baseMixin({})],
  data() {
    return {}
  },
  async created() {
    // const { data } = await getCustomerById(id)
    // this.customerInfo = data
  },
  methods: {
    changeType(item) {
      this.selectedTypeText = item.label
    },
    // canle(){
    //   this.$store.dispatch('delVisitedViews', this.$route)
    //   this.$router.push({ path: '/customer/customer' })
    // }
  },
  mounted() {},
}
</script>

<style lang="scss" scoped>
.el-table .delete-row {
  background: #f5f7fa;
  color: #ccc !important;
}
.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.avatar-uploader .el-upload:hover {
  border-color: #409eff;
}
.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 178px;
  height: 178px;
  line-height: 178px;
  text-align: center;
}
.avatar {
  width: 80px;
  height: 80px;
  display: block;
}
/deep/ .el-form-item__content{
  min-width: 240px;
}
</style>
